﻿using System.Security.Claims;

namespace Lanbt.Core.Entity
{
    public class CurrentUser : ClaimsPrincipal
    {

        /// <summary>
        /// 当前用户id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 是否过期
        /// </summary>
        public string ErrorMsg { get; set; }

        /// <summary>
        /// 是否解析失败
        /// </summary>
        public bool IsError { get; set; } = false;

    }
}
